package com.example.hospital.appointment.controller;

import com.example.hospital.appointment.pojo.NdoctorInf;
import com.example.hospital.appointment.pojo.UploadFile;
import com.example.hospital.appointment.service.NdoctorInfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@Controller
public class Skip {

    @Autowired
    private NdoctorInfService ndoctorInfService;


    @RequestMapping("main")
    public String main(){
        return "main";
    }
    @RequestMapping("top")
    public String top(){
        return "top";
    }
    @RequestMapping("left")
    public String left(){
        return "left";
    }
    @RequestMapping("right")
    public String right(){
        return "zhuzhu01";
    }

    @RequestMapping("login1")
    public String login1(){
        return "login1";
    }
    @RequestMapping("admin")
    public String admin(){
        return "admin";
    }

    @RequestMapping("upload")
    public String upload(){
        return "file";
    }
    @RequestMapping("hospitalintroduction")
    public String hospitalintroduction(){
        return "hospitalintroduction";
    }
//outpatientcharges
@RequestMapping("outpatientcharges")
public String outpatientcharges(){
    return "index";
}
    @RequestMapping("newAdmin")
    public String na(){
        return "newAdmin";
    }

    @GetMapping("/pati")
    public String login(String name, String pwd, Map map){

        map.put("name",name);
        return "./lixue/main01";
    }


    @RequestMapping("yaofang")
    public String dispensary(){
        return "dispensary";
    }
}
